/*********************************
 * Author: Nikhil Kishore
 * Date July 11, 2014
 * Description: Testing embargo card
*********************************/


#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "rngs.h"




int main(int argc, char const *argv[]){

	struct gameState game;
     
	int myCard = embargo;
	int myChoice1 = -1;        
	int myChoice2 = -1;
        int myChoice3 = -1;
        int myHandPos = -1;
        int* myBonus = 0;
        int testValue;
        int testSwitch = 0;

        int testcoins = game.coins;
    
	testValue = cardEffect(myCard, myChoice1, myChoice2, myChoice3, &game    , myHandPos, myBonus);
	
	if (testValue == -1){	
	   printf("Error: cardTest3 [cardEffect()] returned a -1.\n");	   
	   testSwitch = 1;			 
	}

	else if (testValue == 0){	   
	   if (game.coins == (testcoins + 1)){
	      printf("embargo card successfully played.");	      
	   }				    
	}
	
	if (testSwitch == 0)
	   printf("cardtest3 [embargoCard()] shows no errors.\n");
				     
	return 0;
				     
}

